//
//  ZPRegisterSelectStuViewController.m
//  ZPIOSEducation
//
//  Created by mini1 on 2016/12/1.
//  Copyright © 2016年 mini1. All rights reserved.
//

#import "ZPRegisterSelectStuViewController.h"
#import "ZPRegisterInformationViewController.h"

@interface ZPRegisterSelectStuViewController ()
{
    MBProgressHUD *hud;
}
@property (weak, nonatomic) IBOutlet UIButton    *studentInfoBtn;
@property (weak, nonatomic) IBOutlet UITextField *stuName;
@property (weak, nonatomic) IBOutlet UIButton    *selectCity;
@end

@implementation ZPRegisterSelectStuViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
//    self.view = [[[NSBundle mainBundle] loadNibNamed:@"ZPRegisterSelectStuViewController" owner:self options:nil] lastObject];
    
    self.navigationItem.title = @"选择学生";
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"zhenpin_back"] style:UIBarButtonItemStylePlain target:self action:@selector(clickBackButtonItem)];
    
    [self.studentInfoBtn addTarget:self action:@selector(clickStudentInfoBtn) forControlEvents:UIControlEventTouchUpInside];
}

- (void)clickStudentInfoBtn {
    ZPRegisterInformationViewController *RegisterInformationVc = [[ZPRegisterInformationViewController alloc] init];
    [self.navigationController pushViewController:RegisterInformationVc animated:YES];
}


- (void)clickBackButtonItem {
    [self.navigationController popViewControllerAnimated:YES];
        [self.navigationController setNavigationBarHidden:YES];
}

#pragma mark - <视图将要显现viewWillAppear>
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:NO];
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
